import java.awt.Color;
import java.awt.Cursor;

import javax.swing.*;
import java.awt.event.*;

@SuppressWarnings("serial")
public class LabelURL extends JLabel {

	 private Color MNormal = Color.black;
	 private Color MHover  = Color.blue;
	 
	 private Cursor hand = new Cursor(Cursor.HAND_CURSOR);
	 private Cursor normal = new Cursor(Cursor.DEFAULT_CURSOR);
	 
	 public LabelURL() {
		 this.addMouseListener( new MouseOver() );
	 }

	 class MouseOver extends MouseAdapter {
		 public void mouseEntered(MouseEvent e)
		 {
			 setForeground(MHover);
			 setCursor(hand);
		 }
		 public void mouseExited(MouseEvent e)
		 {
			 setForeground(MNormal);
			 setCursor(normal);
		 }
	 }
}
